package com.zusmart.core.bean.annotation;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 属性注入注解,可放置在Class,Field,Method,Parameter,Constructor上,
 * 如果放在class上,则只有prefix值有效,即为内部的field,method,parameter,获取value时,添加前缀
 * 
 * @author Administrator
 *
 */
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target({ ElementType.TYPE, ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER, ElementType.CONSTRUCTOR })
public @interface Property {

	public String prefix() default "";

	public String value() default "";

}